import Vue from 'vue'

Vue.directive('link', (el, url) => {
	el.onclick = () => {
		uni.navigateTo({
			url: url.value
		});
	}
})

Vue.directive('link-all', (el, url) => {
	el.onclick = () => {
		uni.reLaunch({
			url: url.value
		});
	}
})

Vue.directive('link-to', (el, url) => {
	el.onclick = () => {
		uni.redirectTo({
			url: url.value
		});
	}
})
